/*
 * Author:   W.SH
 */
package com.wgg.crawler.scheduler;

import java.util.concurrent.atomic.AtomicInteger;

/**
 * 〈一句话功能简述〉<br> 
 * 〈功能详细描述〉
 *
 *  @author W.SH
 */
public abstract class SchedulerMonitor {

    protected AtomicInteger takeTaskCount = new AtomicInteger(0);
    protected AtomicInteger putTaskCount = new AtomicInteger(0);
    protected AtomicInteger depthCounter = new AtomicInteger(0);
    /**
     * 获取从队列中拿出来的 种子数量 
     */
    public int getRequestedCount() {
        return takeTaskCount.get();
    }
    
    /**
     *  获取存取队列中所有种子的数量 
     */
    public int getTotalRequestCount() {
        return putTaskCount.get();
    }
    
    /**
     * 爬取深度计数 
     */
    public int getDepthCount() {
        return depthCounter.get();
    }
}
